From: Hoàng Đức Hiếu Date: Thu, 12 Oct 2017 04:04:58 +0000 (+0900) Subject: layout: fix typo, and improve pronoun X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~6^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=ffd5e0fcce18f75f0f1ca43953e07d6fb3861073;p=cargo.git layout: fix typo, and improve pronoun "it" is ambiguous between `new` and `at` (the most recent noun). --- diff --git a/src/cargo/ops/cargo_rustc/layout.rs b/src/cargo/ops/cargo_rustc/layout.rs index b28e1bb9d..464a68945 100644 --- a/src/cargo/ops/cargo_rustc/layout.rs +++ b/src/cargo/ops/cargo_rustc/layout.rs @@ -78,11 +78,11 @@ pub fn is_bad_artifact_name(name: &str) -> bool { } impl Layout { - /// Calcuate the paths for build output, lock the build directory, and return as a Layout. + /// Calculate the paths for build output, lock the build directory, and return as a Layout. /// /// This function will block if the directory is already locked. /// - /// Differs from `at` in that it calculates the root path from the workspace target directory, + /// Differs from `at` in that this calculates the root path from the workspace target directory, /// adding the target triple and the profile (debug, release, ...). pub fn new(ws: &Workspace, triple: Option<&str>, @@ -98,7 +98,7 @@ impl Layout { Layout::at(ws.config(), path) } - /// Calcuate the paths for build output, lock the build directory, and return as a Layout. + /// Calculate the paths for build output, lock the build directory, and return as a Layout. /// /// This function will block if the directory is already locked. pub fn at(config: &Config, root: Filesystem) -> CargoResult {